filename = 'D:\Code\pyt1.txt' #定义文件路径

with open(filename) as file_object:
    contents = file_object.readlines()

wznr = ''
for line in contents:
    wznr += line.rstrip()
print(wznr)
print(len(wznr))

